package JavaSE.d1;
///if练习
public class Test8 {
    public static void main(String[] args) {
        int x=1;
        if(x>0){
            System.out.println("x>0");
            x=0;
        }else if(x==0){
            x=-1;
            System.out.println("x=0");
        }else {
            System.out.println("x<0");
        }

        switch (x){
            case 1:
                x=0;

            case 0:
                x=-1;
                System.out.println("x=0");

            case -1:
                x=100;
                System.out.println("x=-1");
            default:
                System.out.println("x = " + x);
        }
    }
}
